#!/usr/bin/python
import sys
sys.path.append('../')
import onmsprovision

OPTIONS = {'source' : "TWiO", 'ip' : '10.80.4.5', 'id' : 'foreignid1'}
KEYS =  {'descr':'Interface 1'}

def add_interface():
	action = 'add'
	onmsprovision.process_command(OPTIONS, action, 'interface', {}, onmsprovision.URLCONNECT)

def set_inteface_attributes():
	#set Interface keys	
	action = 'set'
	onmsprovision.process_command(OPTIONS, action, 'interface', KEYS, onmsprovision.URLCONNECT)

def delete_interface():
	action = 'remove'
	onmsprovision.process_command(OPTIONS, action, 'interface', {}, onmsprovision.URLCONNECT)

if __name__=="__main__":


	add_interface()
	set_inteface_attributes()
		
